<?php
  echo $this->Html->css('calendar/fullcalendar');
?>

<div id="content">
	<!--  start page-heading -->
	<div id="page-heading">
		<h1><?php echo __('Edit Template'); ?></h1>
	</div>
	<!-- end page-heading -->
	<table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
  	<tr>
  		<th rowspan="3" class="sized">
          <?php echo $this->Html->image('/images/shared/side_shadowleft.jpg', array('width' => '20', 'height' => '300', 'alt' => '')); ?>
      </th>
  		<th class="topleft"></th>
  		<td id="tbl-border-top">&nbsp;</td>
  		<th class="topright"></th>
  		<th rowspan="3" class="sized">
          <?php echo $this->Html->image('/images/shared/side_shadowright.jpg', array('width' => '20', 'height' => '300', 'alt' => '')); ?>
      </th>
  	</tr>
  	<tr>
  		<td id="tbl-border-left"></td>
  		<td>
  		<!--  start content-table-inner ...................................................................... START -->
    		<div id="content-table-inner">
      			<!--  start table-content  -->
      			<div id="table-content">

                <?php echo $this->Form->create('Message');?>
                    <table border="0" cellpadding="0" cellspacing="0"  id="id-form">
                        <?php 
                        		echo $this->Form->input('id');
                        ?>      
                    		<tr>
                    			 <th valign="top">Name :</th>
                    			 <td>
                              <?php 
                              		echo $this->Form->input('name', array('label' => false, 'div' => false,'class'=>'input-form','style'=>'width:500px'));
                              ?>      
                           </td>
                    			 <td></td>
                    		</tr>
                    		<tr>
                    			 <th valign="top">Content English:</th>
                    			 <td>
                                            <script type="text/javascript">
                                            // O2k7 skin
                                            /*tinyMCE.init({
                                                    // General options
                                                    mode : "exact",
                                                   // elements : "content_area_en,content_area_ar",
                                                    theme : "advanced",
                                                    skin : "o2k7",
                                                    width : "800",
                                                    plugins : "safari,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",

                                                    // Theme options
                                                    theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
                                                    theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
                                                    theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
                                                    theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage",
                                                    theme_advanced_toolbar_location : "top",
                                                    theme_advanced_toolbar_align : "left",
                                                    theme_advanced_statusbar_location : "bottom",
                                                    theme_advanced_resizing : true,

                                                    // Example content CSS (should be your site CSS)
                                                    content_css : "css/admin/screen.css",

                                                    // Drop lists for link/image/media/template dialogs
                                                    template_external_list_url : "/js/tiny_mce/plugins/template/editor_plugin.js",
                                                    external_link_list_url : "js/link_list.js",
                                                    external_image_list_url : "js/image_list.js",
                                                    media_external_list_url : "/js/tiny_mce/plugins/media/editor_plugin.js",

                                                    // Replace values for the template plugin
                                                    template_replace_values : {
                                                            username : "Some User",
                                                            staffid : "991234"
                                                    }
                                            });*/
                                            </script>
                                        <?php 
                                            echo $this->Form->input('message_en', array('id' => 'content_area_en', 'style'=>'width:500px;height:250px','label' => false, 'div' => false));
                                        ?>      
                                        </td>
                    			 <td></td>
                    		</tr>
                                <tr>
                                    <th valign="top">Content Arabic:</th>
                                    <td>
                                   <?php 
                                       echo $this->Form->input('message_ar', array('id' => 'content_area_ar', 'style'=>'width:500px;height:250px','class'=>'', 'label' => false, 'div' => false));
                                   ?>      
                                   </td>
                                    <td></td>
                    		</tr>
                        <tr>
                        	<th>&nbsp;</th>
                        	<td valign="top">
                                <?php echo $this->Form->submit(__('Submit', true), array('label' => false, 'div' => false, 'class' => 'submit-button'));?>
                         		    <a href="#" onclick="history.back(-1)" class="cancel-button">Cancel</a>
                          </td>
                        	<td></td>
                        </tr>
                      </table>
                    <?php echo $this->Form->end(); ?>
                </div>
            </div>
		<!--  end content-table-inner ............................................END  -->
            </td>
		<td id="tbl-border-right"></td>
	</tr>
	<tr>
		<th class="sized bottomleft"></th>
		<td id="tbl-border-bottom">&nbsp;</td>
		<th class="sized bottomright"></th>
	</tr>
	</table>
	<div class="clear">&nbsp;</div>

</div>
<script type="text/javascript">
  jQuery(document).ready(function() {
    jQuery("#messagesMenu").addClass("current");
  });
</script>